import request from '@/utils/request'

// 查询旅游列表
export function listTourism(query) {
  return request({
    url: '/member/tourism/list',
    method: 'get',
    params: query
  })
}

// 查询旅游详细
export function getTourism(id) {
  return request({
    url: '/member/tourism/' + id,
    method: 'get'
  })
}

// 新增旅游
export function addTourism(data) {
  return request({
    url: '/member/tourism',
    method: 'post',
    data: data
  })
}

// 修改旅游
export function updateTourism(data) {
  return request({
    url: '/member/tourism',
    method: 'put',
    data: data
  })
}

// 删除旅游
export function delTourism(id) {
  return request({
    url: '/member/tourism/' + id,
    method: 'delete'
  })
}

// 导出旅游
export function exportTourism(query) {
  return request({
    url: '/member/tourism/export',
    method: 'get',
    params: query
  })
}